﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;
using System.Drawing;

/// <summary>
/// Summary description for rptXuatHoaDonGTGT
/// </summary>
public class rptXuatHoaDonGTGT : DevExpress.XtraReports.UI.XtraReport
{
	private DevExpress.XtraReports.UI.DetailBand Detail;
	private DevExpress.XtraReports.UI.TopMarginBand TopMargin;
	private DevExpress.XtraReports.UI.BottomMarginBand BottomMargin;
    private dsHoaDonGTGT dsHoaDonGTGT1;
    private DevExpress.XtraReports.Parameters.Parameter F_MACN;
    private XRLabel XR_F_KyHieuHD;
    private XRLabel XR_F_SoHD;
    private XRLabel XR_ngay;
    private XRLabel XR_thang;
    private XRLabel XR_nam;
    private XRLabel XR_nguoimuahang_hoten;
    private XRLabel XR_donvi;
    private XRLabel XR_diachi;
    private XRLabel XR_taikhoan;
    private XRLabel XR_HTTT;
    private XRLabel XR_MST1;
    private XRLabel XR_MST2;
    private XRLabel XR_MST3;
    private XRLabel XR_MST4;
    private XRLabel XR_MST5;
    private XRLabel XR_MST6;
    private XRLabel XR_MST7;
    private XRLabel XR_MST8;
    private XRLabel XR_MST9;
    private XRLabel XR_MST10;
    private XRLabel XR_MST11;
    private XRLabel XR_MST12;
    private XRLabel XR_MST13;
    private XRLabel XR_MST14;
    private XRLabel XR_congtienhang;
    private XRLabel XR_thue;
    private XRLabel XR_thanhtien;
    private XRLabel XR_tienbangchu;
    private XRLabel XR_nguoimuahang_kyten;
    private XRLabel XR_nguoibanhang;
    private DevExpress.XtraReports.Parameters.Parameter NGAY;
    private DevExpress.XtraReports.Parameters.Parameter F_SoHD;
    private DevExpress.XtraReports.Parameters.Parameter THANG;
    private DevExpress.XtraReports.Parameters.Parameter NAM;
    private XRLabel XRstt1;
    private XRLabel XRthanhtien4;
    private XRLabel XRdongia4;
    private XRLabel XRdongia3;
    private XRLabel XRsoluong4;
    private XRLabel XRsoluong3;
    private XRLabel XRdonvitinh4;
    private XRLabel XRdonvitinh3;
    private XRLabel XRthanhtien3;
    private XRLabel XRthanhtien2;
    private XRLabel XRdongia2;
    private XRLabel XRsoluong2;
    private XRLabel XRdonvitinh2;
    private XRLabel XRstt4;
    private XRLabel XRstt3;
    private XRLabel XRstt2;
    private XRLabel XR_F_STT;
    private XRLabel XRtenhanghoa1;
    private XRLabel XRdonvitinh1;
    private XRLabel XRsoluong1;
    private XRLabel XRdongia1;
    private XRLabel XRthanhtien1;
    private XRLabel XR_MST;
    private XRLabel XRtenhanghoa2;
    private XRLabel XRtenhanghoa3;
    private XRLabel XRtenhanghoa4;
    private XRLabel XR_GTGT;
	/// <summary>
	/// Required designer variable.
	/// </summary>
	private System.ComponentModel.IContainer components = null;

    private string F_MACN_prop = "";
    private bool allowShowResultReport = false;

	public rptXuatHoaDonGTGT()
	{
		InitializeComponent();
		//
		// TODO: Add constructor logic here
		//
	}
    public rptXuatHoaDonGTGT(string F_MACN, int NGAY,int THANG,int NAM, string F_SoHD)
    {
        InitializeComponent();

        allowShowResultReport = ReadSomeFileXML.callAllowShowResultReportxHDgtgt();

        Parameters["F_MACN"].Value = F_MACN;
        this.F_MACN_prop = F_MACN;
        //
        //
        Parameters["NGAY"].Value = NGAY;
        Parameters["THANG"].Value = THANG;
        Parameters["NAM"].Value = NAM;
        Parameters["F_SoHD"].Value = F_SoHD;
        //-----------------------------
        DataSet ds = new DataSet();
        DataTable dt = new DataTable();
        dt = cls_tbHOADON_BANGKEHOADON_CHON_IN.GetbyMaCN_to_IN(F_MACN, NGAY.ToString(), THANG.ToString(), NAM.ToString(), F_SoHD.ToString());
        ds.Tables.Add(dt);

        this.DataSource = ds;
        //-----------------------------
        if (allowShowResultReport)
        {
            cls_tbResultCode.Update(" " + F_MACN + "_" + NGAY + "_" + THANG + "_" + NAM + "_" + F_SoHD);
        }
        binddetail();
        setpostionfortheelementHoaDon();
    }
    protected void binddetail()
    {
        
    }
    
    protected override void OnBeforePrint(System.Drawing.Printing.PrintEventArgs e)
    {
        base.OnBeforePrint(e);
        try
        {
            //var adtHoaDonGTGT = new dsHoaDonGTGTTableAdapters.tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCNTableAdapter();
            //dsHoaDonGTGT1.Merge(adtHoaDonGTGT.GetData(F_MACN.Value.ToString()));
            
            //var adtHoaDonGTGT = new dsHoaDonGTGTTableAdapters.tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_INTableAdapter();
            //dsHoaDonGTGT1.Merge(adtHoaDonGTGT.GetData(F_MACN.Value.ToString(),NGAY.Value.ToString(),THANG.Value.ToString(),NAM.Value.ToString(),F_SoHD.Value.ToString()));
            

        }
        catch { }
        //DataTable dt = new DataTable();
        //dt = cls_tbHOADON_BANGKEHOADON_DETAIL.GetByF_STTF_KyHieuHDF_SoHD(new Guid(txtF_STT.Text),
        //    txtF_KyHieuHD.Text,
        //    txtF_SoHD.Text);
        //XRstt1.Text = txtF_STT.Text + "/" + txtF_SoHD.Text + "/" + txtF_KyHieuHD.Text;
        
    }
    protected override void OnAfterPrint(EventArgs e)
    {
        base.OnAfterPrint(e);
        //XRstt1.Text = txtF_STT.Text + "/" + txtF_SoHD.Text + "/" + txtF_KyHieuHD.Text;
    }
	/// <summary> 
	/// Clean up any resources being used.
	/// </summary>
	/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
	protected override void Dispose(bool disposing) {
		if (disposing && (components != null)) {
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	#region Designer generated code

	/// <summary>
	/// Required method for Designer support - do not modify
	/// the contents of this method with the code editor.
	/// </summary>
	private void InitializeComponent() {
        string resourceFileName = "rptXuatHoaDonGTGT.resx";
        this.Detail = new DevExpress.XtraReports.UI.DetailBand();
        this.XR_GTGT = new DevExpress.XtraReports.UI.XRLabel();
        this.XRtenhanghoa4 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRtenhanghoa3 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRtenhanghoa2 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST = new DevExpress.XtraReports.UI.XRLabel();
        this.XRthanhtien1 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdongia1 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRsoluong1 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdonvitinh1 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRtenhanghoa1 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_F_STT = new DevExpress.XtraReports.UI.XRLabel();
        this.XRthanhtien4 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdongia4 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdongia3 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRsoluong4 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRsoluong3 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdonvitinh4 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdonvitinh3 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRthanhtien3 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRthanhtien2 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdongia2 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRsoluong2 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRdonvitinh2 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRstt4 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRstt3 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRstt2 = new DevExpress.XtraReports.UI.XRLabel();
        this.XRstt1 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_nguoibanhang = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_nguoimuahang_kyten = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_tienbangchu = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_thanhtien = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_thue = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_congtienhang = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST14 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST13 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST12 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST11 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST10 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST9 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST8 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST7 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST6 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST5 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST4 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST3 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST2 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_MST1 = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_HTTT = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_taikhoan = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_diachi = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_donvi = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_nguoimuahang_hoten = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_nam = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_thang = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_ngay = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_F_SoHD = new DevExpress.XtraReports.UI.XRLabel();
        this.XR_F_KyHieuHD = new DevExpress.XtraReports.UI.XRLabel();
        this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand();
        this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand();
        this.dsHoaDonGTGT1 = new dsHoaDonGTGT();
        this.F_MACN = new DevExpress.XtraReports.Parameters.Parameter();
        this.NGAY = new DevExpress.XtraReports.Parameters.Parameter();
        this.F_SoHD = new DevExpress.XtraReports.Parameters.Parameter();
        this.THANG = new DevExpress.XtraReports.Parameters.Parameter();
        this.NAM = new DevExpress.XtraReports.Parameters.Parameter();
        ((System.ComponentModel.ISupportInitialize)(this.dsHoaDonGTGT1)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
        // 
        // Detail
        // 
        this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.XR_GTGT,
            this.XRtenhanghoa4,
            this.XRtenhanghoa3,
            this.XRtenhanghoa2,
            this.XR_MST,
            this.XRthanhtien1,
            this.XRdongia1,
            this.XRsoluong1,
            this.XRdonvitinh1,
            this.XRtenhanghoa1,
            this.XR_F_STT,
            this.XRthanhtien4,
            this.XRdongia4,
            this.XRdongia3,
            this.XRsoluong4,
            this.XRsoluong3,
            this.XRdonvitinh4,
            this.XRdonvitinh3,
            this.XRthanhtien3,
            this.XRthanhtien2,
            this.XRdongia2,
            this.XRsoluong2,
            this.XRdonvitinh2,
            this.XRstt4,
            this.XRstt3,
            this.XRstt2,
            this.XRstt1,
            this.XR_nguoibanhang,
            this.XR_nguoimuahang_kyten,
            this.XR_tienbangchu,
            this.XR_thanhtien,
            this.XR_thue,
            this.XR_congtienhang,
            this.XR_MST14,
            this.XR_MST13,
            this.XR_MST12,
            this.XR_MST11,
            this.XR_MST10,
            this.XR_MST9,
            this.XR_MST8,
            this.XR_MST7,
            this.XR_MST6,
            this.XR_MST5,
            this.XR_MST4,
            this.XR_MST3,
            this.XR_MST2,
            this.XR_MST1,
            this.XR_HTTT,
            this.XR_taikhoan,
            this.XR_diachi,
            this.XR_donvi,
            this.XR_nguoimuahang_hoten,
            this.XR_nam,
            this.XR_thang,
            this.XR_ngay,
            this.XR_F_SoHD,
            this.XR_F_KyHieuHD});
        this.Detail.HeightF = 598F;
        this.Detail.Name = "Detail";
        this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
        this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        // 
        // XR_GTGT
        // 
        this.XR_GTGT.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_GTGT", "{0:#,##0}")});
        this.XR_GTGT.LocationFloat = new DevExpress.Utils.PointFloat(653F, 368.9583F);
        this.XR_GTGT.Name = "XR_GTGT";
        this.XR_GTGT.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_GTGT.SizeF = new System.Drawing.SizeF(122.8749F, 13.62503F);
        this.XR_GTGT.StylePriority.UseTextAlignment = false;
        this.XR_GTGT.Text = "XR_GTGT";
        this.XR_GTGT.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        this.XR_GTGT.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.XR_GTGT_BeforePrint);
        // 
        // XRtenhanghoa4
        // 
        this.XRtenhanghoa4.LocationFloat = new DevExpress.Utils.PointFloat(129.7083F, 330.9999F);
        this.XRtenhanghoa4.Multiline = true;
        this.XRtenhanghoa4.Name = "XRtenhanghoa4";
        this.XRtenhanghoa4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRtenhanghoa4.SizeF = new System.Drawing.SizeF(178.125F, 14.66669F);
        this.XRtenhanghoa4.Text = "\r\n";
        // 
        // XRtenhanghoa3
        // 
        this.XRtenhanghoa3.LocationFloat = new DevExpress.Utils.PointFloat(129.7083F, 307.0416F);
        this.XRtenhanghoa3.Multiline = true;
        this.XRtenhanghoa3.Name = "XRtenhanghoa3";
        this.XRtenhanghoa3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRtenhanghoa3.SizeF = new System.Drawing.SizeF(178.125F, 14.66669F);
        this.XRtenhanghoa3.Text = "\r\n";
        // 
        // XRtenhanghoa2
        // 
        this.XRtenhanghoa2.LocationFloat = new DevExpress.Utils.PointFloat(128.6666F, 282.0416F);
        this.XRtenhanghoa2.Multiline = true;
        this.XRtenhanghoa2.Name = "XRtenhanghoa2";
        this.XRtenhanghoa2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRtenhanghoa2.SizeF = new System.Drawing.SizeF(178.125F, 14.66669F);
        this.XRtenhanghoa2.Text = "\r\n";
        // 
        // XR_MST
        // 
        this.XR_MST.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_MaSoThue")});
        this.XR_MST.LocationFloat = new DevExpress.Utils.PointFloat(9.999998F, 211.9583F);
        this.XR_MST.Name = "XR_MST";
        this.XR_MST.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST.SizeF = new System.Drawing.SizeF(126.8749F, 12.58334F);
        this.XR_MST.Text = "XR_MST";
        // 
        // XRthanhtien1
        // 
        this.XRthanhtien1.LocationFloat = new DevExpress.Utils.PointFloat(647.4167F, 258.0833F);
        this.XRthanhtien1.Name = "XRthanhtien1";
        this.XRthanhtien1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRthanhtien1.SizeF = new System.Drawing.SizeF(122.8748F, 15.70834F);
        this.XRthanhtien1.StylePriority.UseTextAlignment = false;
        this.XRthanhtien1.Text = "xrLabel30";
        this.XRthanhtien1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRdongia1
        // 
        this.XRdongia1.LocationFloat = new DevExpress.Utils.PointFloat(547F, 256.9583F);
        this.XRdongia1.Name = "XRdongia1";
        this.XRdongia1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdongia1.SizeF = new System.Drawing.SizeF(90.66669F, 14.66669F);
        this.XRdongia1.StylePriority.UseTextAlignment = false;
        this.XRdongia1.Text = "xrLabel29";
        this.XRdongia1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRsoluong1
        // 
        this.XRsoluong1.LocationFloat = new DevExpress.Utils.PointFloat(464.3748F, 259.125F);
        this.XRsoluong1.Name = "XRsoluong1";
        this.XRsoluong1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRsoluong1.SizeF = new System.Drawing.SizeF(74.99997F, 13.62503F);
        this.XRsoluong1.StylePriority.UseTextAlignment = false;
        this.XRsoluong1.Text = "xrLabel28";
        this.XRsoluong1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRdonvitinh1
        // 
        this.XRdonvitinh1.LocationFloat = new DevExpress.Utils.PointFloat(396.5F, 258.0001F);
        this.XRdonvitinh1.Name = "XRdonvitinh1";
        this.XRdonvitinh1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdonvitinh1.SizeF = new System.Drawing.SizeF(62.50003F, 14.66669F);
        this.XRdonvitinh1.StylePriority.UseTextAlignment = false;
        this.XRdonvitinh1.Text = "xrLabel27";
        this.XRdonvitinh1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        // 
        // XRtenhanghoa1
        // 
        this.XRtenhanghoa1.LocationFloat = new DevExpress.Utils.PointFloat(129.7083F, 257.0416F);
        this.XRtenhanghoa1.Multiline = true;
        this.XRtenhanghoa1.Name = "XRtenhanghoa1";
        this.XRtenhanghoa1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRtenhanghoa1.SizeF = new System.Drawing.SizeF(178.125F, 14.66669F);
        this.XRtenhanghoa1.Text = "\r\n";
        // 
        // XR_F_STT
        // 
        this.XR_F_STT.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_STT")});
        this.XR_F_STT.LocationFloat = new DevExpress.Utils.PointFloat(9.999998F, 81.6667F);
        this.XR_F_STT.Name = "XR_F_STT";
        this.XR_F_STT.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_F_STT.SizeF = new System.Drawing.SizeF(126.8749F, 12.58334F);
        this.XR_F_STT.Text = "XR_F_STT";
        this.XR_F_STT.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.txtF_STT_BeforePrint);
        // 
        // XRthanhtien4
        // 
        this.XRthanhtien4.LocationFloat = new DevExpress.Utils.PointFloat(649.0002F, 330.9999F);
        this.XRthanhtien4.Name = "XRthanhtien4";
        this.XRthanhtien4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRthanhtien4.SizeF = new System.Drawing.SizeF(121.2914F, 15.70834F);
        this.XRthanhtien4.StylePriority.UseTextAlignment = false;
        this.XRthanhtien4.Text = "xrLabel30";
        this.XRthanhtien4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRdongia4
        // 
        this.XRdongia4.LocationFloat = new DevExpress.Utils.PointFloat(547F, 332.0416F);
        this.XRdongia4.Name = "XRdongia4";
        this.XRdongia4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdongia4.SizeF = new System.Drawing.SizeF(90.66669F, 14.66669F);
        this.XRdongia4.StylePriority.UseTextAlignment = false;
        this.XRdongia4.Text = "xrLabel29";
        this.XRdongia4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRdongia3
        // 
        this.XRdongia3.LocationFloat = new DevExpress.Utils.PointFloat(547F, 307.0416F);
        this.XRdongia3.Name = "XRdongia3";
        this.XRdongia3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdongia3.SizeF = new System.Drawing.SizeF(90.66669F, 14.66672F);
        this.XRdongia3.StylePriority.UseTextAlignment = false;
        this.XRdongia3.Text = "xrLabel29";
        this.XRdongia3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRsoluong4
        // 
        this.XRsoluong4.LocationFloat = new DevExpress.Utils.PointFloat(464.375F, 334.125F);
        this.XRsoluong4.Name = "XRsoluong4";
        this.XRsoluong4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRsoluong4.SizeF = new System.Drawing.SizeF(74.99982F, 13.625F);
        this.XRsoluong4.StylePriority.UseTextAlignment = false;
        this.XRsoluong4.Text = "xrLabel28";
        this.XRsoluong4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRsoluong3
        // 
        this.XRsoluong3.LocationFloat = new DevExpress.Utils.PointFloat(464.3748F, 308.0833F);
        this.XRsoluong3.Name = "XRsoluong3";
        this.XRsoluong3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRsoluong3.SizeF = new System.Drawing.SizeF(74.99997F, 13.625F);
        this.XRsoluong3.StylePriority.UseTextAlignment = false;
        this.XRsoluong3.Text = "xrLabel28";
        this.XRsoluong3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRdonvitinh4
        // 
        this.XRdonvitinh4.LocationFloat = new DevExpress.Utils.PointFloat(396.5F, 334.1251F);
        this.XRdonvitinh4.Name = "XRdonvitinh4";
        this.XRdonvitinh4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdonvitinh4.SizeF = new System.Drawing.SizeF(62.50003F, 14.66669F);
        this.XRdonvitinh4.StylePriority.UseTextAlignment = false;
        this.XRdonvitinh4.Text = "xrLabel27";
        this.XRdonvitinh4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        // 
        // XRdonvitinh3
        // 
        this.XRdonvitinh3.LocationFloat = new DevExpress.Utils.PointFloat(396.5F, 310.1667F);
        this.XRdonvitinh3.Name = "XRdonvitinh3";
        this.XRdonvitinh3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdonvitinh3.SizeF = new System.Drawing.SizeF(62.50003F, 14.66669F);
        this.XRdonvitinh3.StylePriority.UseTextAlignment = false;
        this.XRdonvitinh3.Text = "xrLabel27";
        this.XRdonvitinh3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        // 
        // XRthanhtien3
        // 
        this.XRthanhtien3.LocationFloat = new DevExpress.Utils.PointFloat(649.0001F, 308.0833F);
        this.XRthanhtien3.Name = "XRthanhtien3";
        this.XRthanhtien3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRthanhtien3.SizeF = new System.Drawing.SizeF(122.8749F, 15.70834F);
        this.XRthanhtien3.StylePriority.UseTextAlignment = false;
        this.XRthanhtien3.Text = "xrLabel30";
        this.XRthanhtien3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRthanhtien2
        // 
        this.XRthanhtien2.LocationFloat = new DevExpress.Utils.PointFloat(649.0002F, 282.0416F);
        this.XRthanhtien2.Name = "XRthanhtien2";
        this.XRthanhtien2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRthanhtien2.SizeF = new System.Drawing.SizeF(122.8748F, 15.70834F);
        this.XRthanhtien2.StylePriority.UseTextAlignment = false;
        this.XRthanhtien2.Text = "xrLabel30";
        this.XRthanhtien2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRdongia2
        // 
        this.XRdongia2.LocationFloat = new DevExpress.Utils.PointFloat(547F, 282.0416F);
        this.XRdongia2.Name = "XRdongia2";
        this.XRdongia2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdongia2.SizeF = new System.Drawing.SizeF(90.66669F, 14.66672F);
        this.XRdongia2.StylePriority.UseTextAlignment = false;
        this.XRdongia2.Text = "xrLabel29";
        this.XRdongia2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRsoluong2
        // 
        this.XRsoluong2.LocationFloat = new DevExpress.Utils.PointFloat(464.375F, 283.0833F);
        this.XRsoluong2.Name = "XRsoluong2";
        this.XRsoluong2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRsoluong2.SizeF = new System.Drawing.SizeF(74.99994F, 13.62503F);
        this.XRsoluong2.StylePriority.UseTextAlignment = false;
        this.XRsoluong2.Text = "xrLabel28";
        this.XRsoluong2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XRdonvitinh2
        // 
        this.XRdonvitinh2.LocationFloat = new DevExpress.Utils.PointFloat(396.5F, 283.0833F);
        this.XRdonvitinh2.Name = "XRdonvitinh2";
        this.XRdonvitinh2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRdonvitinh2.SizeF = new System.Drawing.SizeF(62.50003F, 14.66669F);
        this.XRdonvitinh2.StylePriority.UseTextAlignment = false;
        this.XRdonvitinh2.Text = "xrLabel27";
        this.XRdonvitinh2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        // 
        // XRstt4
        // 
        this.XRstt4.LocationFloat = new DevExpress.Utils.PointFloat(9.999998F, 333.0833F);
        this.XRstt4.Name = "XRstt4";
        this.XRstt4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRstt4.SizeF = new System.Drawing.SizeF(95.83333F, 14.66669F);
        // 
        // XRstt3
        // 
        this.XRstt3.LocationFloat = new DevExpress.Utils.PointFloat(9.999998F, 309.125F);
        this.XRstt3.Name = "XRstt3";
        this.XRstt3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRstt3.SizeF = new System.Drawing.SizeF(95.83333F, 14.66669F);
        // 
        // XRstt2
        // 
        this.XRstt2.LocationFloat = new DevExpress.Utils.PointFloat(9.999998F, 282.0416F);
        this.XRstt2.Name = "XRstt2";
        this.XRstt2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRstt2.SizeF = new System.Drawing.SizeF(95.83333F, 14.66672F);
        this.XRstt2.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.XRstt2_BeforePrint);
        // 
        // XRstt1
        // 
        this.XRstt1.LocationFloat = new DevExpress.Utils.PointFloat(9.999998F, 256.9583F);
        this.XRstt1.Name = "XRstt1";
        this.XRstt1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XRstt1.SizeF = new System.Drawing.SizeF(95.83333F, 14.75F);
        this.XRstt1.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.XRstt1_BeforePrint);
        // 
        // XR_nguoibanhang
        // 
        this.XR_nguoibanhang.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_NGUOIBANHANG")});
        this.XR_nguoibanhang.LocationFloat = new DevExpress.Utils.PointFloat(539F, 458F);
        this.XR_nguoibanhang.Name = "XR_nguoibanhang";
        this.XR_nguoibanhang.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_nguoibanhang.SizeF = new System.Drawing.SizeF(210.0001F, 15.70831F);
        this.XR_nguoibanhang.StylePriority.UseTextAlignment = false;
        this.XR_nguoibanhang.Text = "XR_nguoibanhang";
        this.XR_nguoibanhang.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
        // 
        // XR_nguoimuahang_kyten
        // 
        this.XR_nguoimuahang_kyten.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_NGUOIMUAHANG_KYTEN")});
        this.XR_nguoimuahang_kyten.LocationFloat = new DevExpress.Utils.PointFloat(98.00002F, 458F);
        this.XR_nguoimuahang_kyten.Name = "XR_nguoimuahang_kyten";
        this.XR_nguoimuahang_kyten.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_nguoimuahang_kyten.SizeF = new System.Drawing.SizeF(179.1667F, 15.70837F);
        this.XR_nguoimuahang_kyten.StylePriority.UseTextAlignment = false;
        this.XR_nguoimuahang_kyten.Text = "XR_nguoimuahang_kyten";
        this.XR_nguoimuahang_kyten.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
        // 
        // XR_tienbangchu
        // 
        this.XR_tienbangchu.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_TIENBANGCHU")});
        this.XR_tienbangchu.LocationFloat = new DevExpress.Utils.PointFloat(177F, 421F);
        this.XR_tienbangchu.Name = "XR_tienbangchu";
        this.XR_tienbangchu.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_tienbangchu.SizeF = new System.Drawing.SizeF(598.875F, 15.70831F);
        this.XR_tienbangchu.Text = "XR_tienbangchu";
        // 
        // XR_thanhtien
        // 
        this.XR_thanhtien.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_THANHTIEN", "{0:#,##0}")});
        this.XR_thanhtien.LocationFloat = new DevExpress.Utils.PointFloat(653F, 390F);
        this.XR_thanhtien.Name = "XR_thanhtien";
        this.XR_thanhtien.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_thanhtien.SizeF = new System.Drawing.SizeF(122.8749F, 14.66666F);
        this.XR_thanhtien.StylePriority.UseTextAlignment = false;
        this.XR_thanhtien.Text = "XR_thanhtien";
        this.XR_thanhtien.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XR_thue
        // 
        this.XR_thue.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_THUE")});
        this.XR_thue.LocationFloat = new DevExpress.Utils.PointFloat(444F, 370F);
        this.XR_thue.Name = "XR_thue";
        this.XR_thue.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_thue.SizeF = new System.Drawing.SizeF(88.54169F, 12.58334F);
        this.XR_thue.Text = "XR_thue";
        // 
        // XR_congtienhang
        // 
        this.XR_congtienhang.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_CONGTIENHANG", "{0:#,##0}")});
        this.XR_congtienhang.LocationFloat = new DevExpress.Utils.PointFloat(653F, 350F);
        this.XR_congtienhang.Name = "XR_congtienhang";
        this.XR_congtienhang.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_congtienhang.SizeF = new System.Drawing.SizeF(122.8749F, 13.62503F);
        this.XR_congtienhang.StylePriority.UseTextAlignment = false;
        this.XR_congtienhang.Text = "[F_CONGTIENHANG]";
        this.XR_congtienhang.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        // 
        // XR_MST14
        // 
        this.XR_MST14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST14")});
        this.XR_MST14.LocationFloat = new DevExpress.Utils.PointFloat(728F, 213F);
        this.XR_MST14.Name = "XR_MST14";
        this.XR_MST14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST14.SizeF = new System.Drawing.SizeF(11.45834F, 13.625F);
        this.XR_MST14.Text = "XR_MST14";
        // 
        // XR_MST13
        // 
        this.XR_MST13.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST13")});
        this.XR_MST13.LocationFloat = new DevExpress.Utils.PointFloat(708F, 213F);
        this.XR_MST13.Name = "XR_MST13";
        this.XR_MST13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST13.SizeF = new System.Drawing.SizeF(10.41666F, 13.625F);
        this.XR_MST13.Text = "XR_MST13";
        // 
        // XR_MST12
        // 
        this.XR_MST12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST12")});
        this.XR_MST12.LocationFloat = new DevExpress.Utils.PointFloat(688F, 213F);
        this.XR_MST12.Name = "XR_MST12";
        this.XR_MST12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST12.SizeF = new System.Drawing.SizeF(13.54166F, 13.625F);
        this.XR_MST12.Text = "XR_MST12";
        // 
        // XR_MST11
        // 
        this.XR_MST11.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST11")});
        this.XR_MST11.LocationFloat = new DevExpress.Utils.PointFloat(673F, 213F);
        this.XR_MST11.Name = "XR_MST11";
        this.XR_MST11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST11.SizeF = new System.Drawing.SizeF(10.41668F, 14.66669F);
        this.XR_MST11.Text = "XR_MST11";
        // 
        // XR_MST10
        // 
        this.XR_MST10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST10")});
        this.XR_MST10.LocationFloat = new DevExpress.Utils.PointFloat(649F, 213F);
        this.XR_MST10.Name = "XR_MST10";
        this.XR_MST10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST10.SizeF = new System.Drawing.SizeF(12.49998F, 14.66669F);
        this.XR_MST10.Text = "XR_MST10";
        // 
        // XR_MST9
        // 
        this.XR_MST9.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST9")});
        this.XR_MST9.LocationFloat = new DevExpress.Utils.PointFloat(633F, 213F);
        this.XR_MST9.Name = "XR_MST9";
        this.XR_MST9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST9.SizeF = new System.Drawing.SizeF(11.45832F, 12.58334F);
        this.XR_MST9.Text = "XR_MST9";
        // 
        // XR_MST8
        // 
        this.XR_MST8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST8")});
        this.XR_MST8.LocationFloat = new DevExpress.Utils.PointFloat(614F, 213F);
        this.XR_MST8.Name = "XR_MST8";
        this.XR_MST8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST8.SizeF = new System.Drawing.SizeF(12.50001F, 13.625F);
        this.XR_MST8.Text = "XR_MST8";
        // 
        // XR_MST7
        // 
        this.XR_MST7.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST7")});
        this.XR_MST7.LocationFloat = new DevExpress.Utils.PointFloat(598F, 213F);
        this.XR_MST7.Name = "XR_MST7";
        this.XR_MST7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST7.SizeF = new System.Drawing.SizeF(12.5F, 13.625F);
        this.XR_MST7.Text = "XR_MST7";
        // 
        // XR_MST6
        // 
        this.XR_MST6.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST6")});
        this.XR_MST6.LocationFloat = new DevExpress.Utils.PointFloat(582F, 213F);
        this.XR_MST6.Name = "XR_MST6";
        this.XR_MST6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST6.SizeF = new System.Drawing.SizeF(12.5F, 13.625F);
        this.XR_MST6.Text = "XR_MST6";
        // 
        // XR_MST5
        // 
        this.XR_MST5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST5")});
        this.XR_MST5.LocationFloat = new DevExpress.Utils.PointFloat(562F, 213F);
        this.XR_MST5.Name = "XR_MST5";
        this.XR_MST5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST5.SizeF = new System.Drawing.SizeF(13.54167F, 12.58334F);
        this.XR_MST5.Text = "XR_MST5";
        // 
        // XR_MST4
        // 
        this.XR_MST4.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST4")});
        this.XR_MST4.LocationFloat = new DevExpress.Utils.PointFloat(547F, 213F);
        this.XR_MST4.Name = "XR_MST4";
        this.XR_MST4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST4.SizeF = new System.Drawing.SizeF(11.45834F, 13.625F);
        this.XR_MST4.Text = "XR_MST4";
        // 
        // XR_MST3
        // 
        this.XR_MST3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST3")});
        this.XR_MST3.LocationFloat = new DevExpress.Utils.PointFloat(531F, 213F);
        this.XR_MST3.Name = "XR_MST3";
        this.XR_MST3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST3.SizeF = new System.Drawing.SizeF(8.375F, 11.54167F);
        this.XR_MST3.Text = "XR_MST3";
        // 
        // XR_MST2
        // 
        this.XR_MST2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST2")});
        this.XR_MST2.LocationFloat = new DevExpress.Utils.PointFloat(507F, 213F);
        this.XR_MST2.Name = "XR_MST2";
        this.XR_MST2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST2.SizeF = new System.Drawing.SizeF(8.333344F, 11.54167F);
        this.XR_MST2.Text = "XR_MST2";
        // 
        // XR_MST1
        // 
        this.XR_MST1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.MST1")});
        this.XR_MST1.LocationFloat = new DevExpress.Utils.PointFloat(488F, 213F);
        this.XR_MST1.Name = "XR_MST1";
        this.XR_MST1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_MST1.SizeF = new System.Drawing.SizeF(11F, 12.58333F);
        this.XR_MST1.Text = "XR_MST1";
        // 
        // XR_HTTT
        // 
        this.XR_HTTT.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_HTTT")});
        this.XR_HTTT.LocationFloat = new DevExpress.Utils.PointFloat(216F, 213F);
        this.XR_HTTT.Name = "XR_HTTT";
        this.XR_HTTT.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_HTTT.SizeF = new System.Drawing.SizeF(210.4167F, 15.70833F);
        this.XR_HTTT.Text = "[F_HTTT]";
        // 
        // XR_taikhoan
        // 
        this.XR_taikhoan.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_TAIKHOAN")});
        this.XR_taikhoan.LocationFloat = new DevExpress.Utils.PointFloat(157F, 193.75F);
        this.XR_taikhoan.Name = "XR_taikhoan";
        this.XR_taikhoan.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_taikhoan.SizeF = new System.Drawing.SizeF(591.9999F, 16.74998F);
        this.XR_taikhoan.Text = "XR_taikhoan";
        // 
        // XR_diachi
        // 
        this.XR_diachi.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_DIACHI")});
        this.XR_diachi.LocationFloat = new DevExpress.Utils.PointFloat(157F, 177F);
        this.XR_diachi.Name = "XR_diachi";
        this.XR_diachi.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_diachi.SizeF = new System.Drawing.SizeF(592.0001F, 16.75F);
        this.XR_diachi.Text = "XR_diachi";
        // 
        // XR_donvi
        // 
        this.XR_donvi.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_DONVI")});
        this.XR_donvi.LocationFloat = new DevExpress.Utils.PointFloat(157F, 157F);
        this.XR_donvi.Name = "XR_donvi";
        this.XR_donvi.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_donvi.SizeF = new System.Drawing.SizeF(591.9999F, 15.70833F);
        this.XR_donvi.Text = "XR_donvi";
        // 
        // XR_nguoimuahang_hoten
        // 
        this.XR_nguoimuahang_hoten.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_NGUOIMUA")});
        this.XR_nguoimuahang_hoten.LocationFloat = new DevExpress.Utils.PointFloat(212F, 138F);
        this.XR_nguoimuahang_hoten.Name = "XR_nguoimuahang_hoten";
        this.XR_nguoimuahang_hoten.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_nguoimuahang_hoten.SizeF = new System.Drawing.SizeF(537F, 18.99998F);
        this.XR_nguoimuahang_hoten.Text = "XR_nguoimuahang_hoten";
        // 
        // XR_nam
        // 
        this.XR_nam.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.NAM")});
        this.XR_nam.LocationFloat = new DevExpress.Utils.PointFloat(480F, 110F);
        this.XR_nam.Name = "XR_nam";
        this.XR_nam.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_nam.SizeF = new System.Drawing.SizeF(45.83331F, 16.75F);
        this.XR_nam.Text = "XR_nam";
        // 
        // XR_thang
        // 
        this.XR_thang.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.THANG")});
        this.XR_thang.LocationFloat = new DevExpress.Utils.PointFloat(409F, 110F);
        this.XR_thang.Name = "XR_thang";
        this.XR_thang.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_thang.SizeF = new System.Drawing.SizeF(60.41666F, 16.75F);
        this.XR_thang.Text = "XR_thang";
        // 
        // XR_ngay
        // 
        this.XR_ngay.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.NGAY")});
        this.XR_ngay.LocationFloat = new DevExpress.Utils.PointFloat(346F, 110F);
        this.XR_ngay.Name = "XR_ngay";
        this.XR_ngay.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_ngay.SizeF = new System.Drawing.SizeF(57.29169F, 16.75F);
        this.XR_ngay.Text = "XR_ngay";
        // 
        // XR_F_SoHD
        // 
        this.XR_F_SoHD.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_SoHD")});
        this.XR_F_SoHD.LocationFloat = new DevExpress.Utils.PointFloat(629F, 74.00001F);
        this.XR_F_SoHD.Name = "XR_F_SoHD";
        this.XR_F_SoHD.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_F_SoHD.SizeF = new System.Drawing.SizeF(146.875F, 17F);
        this.XR_F_SoHD.Text = "XR_F_SoHD";
        // 
        // XR_F_KyHieuHD
        // 
        this.XR_F_KyHieuHD.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN.F_KyHieuHD")});
        this.XR_F_KyHieuHD.LocationFloat = new DevExpress.Utils.PointFloat(649F, 50.99999F);
        this.XR_F_KyHieuHD.Name = "XR_F_KyHieuHD";
        this.XR_F_KyHieuHD.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
        this.XR_F_KyHieuHD.SizeF = new System.Drawing.SizeF(126.8749F, 12.58334F);
        this.XR_F_KyHieuHD.Text = "XR_F_KyHieuHD";
        // 
        // TopMargin
        // 
        this.TopMargin.HeightF = 0F;
        this.TopMargin.Name = "TopMargin";
        this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
        this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        // 
        // BottomMargin
        // 
        this.BottomMargin.HeightF = 0F;
        this.BottomMargin.Name = "BottomMargin";
        this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
        this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        // 
        // dsHoaDonGTGT1
        // 
        this.dsHoaDonGTGT1.DataSetName = "dsHoaDonGTGT";
        this.dsHoaDonGTGT1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
        // 
        // F_MACN
        // 
        this.F_MACN.Name = "F_MACN";
        this.F_MACN.Value = "";
        // 
        // NGAY
        // 
        this.NGAY.Name = "NGAY";
        this.NGAY.Value = "";
        // 
        // F_SoHD
        // 
        this.F_SoHD.Name = "F_SoHD";
        this.F_SoHD.Value = "";
        // 
        // THANG
        // 
        this.THANG.Name = "THANG";
        this.THANG.Value = "";
        // 
        // NAM
        // 
        this.NAM.Name = "NAM";
        this.NAM.Value = "";
        // 
        // rptXuatHoaDonGTGT
        // 
        this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.Detail,
            this.TopMargin,
            this.BottomMargin});
        this.DataMember = "tbHOADON_BANGKEHOADON_CHON_IN_GetbyMaCN_to_IN";
        this.DataSource = this.dsHoaDonGTGT1;
        this.Landscape = true;
        this.Margins = new System.Drawing.Printing.Margins(13, 15, 0, 0);
        this.PageHeight = 583;
        this.PageWidth = 827;
        this.PaperKind = System.Drawing.Printing.PaperKind.A5;
        this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] {
            this.F_MACN,
            this.NGAY,
            this.THANG,
            this.NAM,
            this.F_SoHD});
        this.Version = "10.2";
        ((System.ComponentModel.ISupportInitialize)(this.dsHoaDonGTGT1)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

	}

	#endregion

    private void XRstt1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        DataTable dt = new DataTable();
        Guid F_STT = Guid.Empty;
        try {
            F_STT = new Guid(XR_F_STT.Text);
        }
        catch { }        
        dt = cls_tbHOADON_BANGKEHOADON_DETAIL.GetByF_STTF_KyHieuHDF_SoHD(F_STT,
            XR_F_KyHieuHD.Text,
            XR_F_SoHD.Text);

        if (allowShowResultReport)
        {
            cls_tbResultCode.Update(" " + XR_F_STT.Text + "_" + dt.Rows.Count);
        }
        int index = 1;
        foreach (DataRow dr in dt.Rows)
        {
            string stt = "";
            string tenhanghoa = "";
            string donvitinh = "";
            int soluong = 0;
            int dongia = 0;
            int thanhtien = 0;
            string soluong_str = "";
            string dongia_str = "";
            string thanhtien_str = "";
            stt = dr["STT"].ToString();
            tenhanghoa = dr["F_tenhanghoa"].ToString();
            donvitinh = dr["F_donvitinh"].ToString();
            try {
                soluong = int.Parse(dr["F_soluong"].ToString());
            }
            catch { }
            try
            {
                dongia = int.Parse(dr["F_dongia"].ToString());
            }
            catch { }
            try
            {
                thanhtien = int.Parse(dr["F_thanhtien"].ToString());
            }
            catch { }
            if (tenhanghoa == "" && donvitinh == "" && soluong == 0 && dongia == 0 && thanhtien == 0) { stt = ""; }
            soluong_str = soluong > 0 ? string.Format("{0:#,##0}", soluong) : "";
            dongia_str = dongia > 0 ? string.Format("{0:#,##0}", dongia) : "";
            thanhtien_str = thanhtien > 0 ? string.Format("{0:#,##0}", thanhtien) : "";
            
            if (index == 1)
            {                
                XRstt1.Text = stt;
                XRtenhanghoa1.Text = tenhanghoa;
                XRdonvitinh1.Text = donvitinh;
                XRsoluong1.Text = soluong_str;
                XRdongia1.Text = dongia_str;
                XRthanhtien1.Text = thanhtien_str;
            }
            else if (index == 2)
            {
                XRstt2.Text = stt;
                XRtenhanghoa2.Text = tenhanghoa;
                XRdonvitinh2.Text = donvitinh;
                XRsoluong2.Text = soluong_str;
                XRdongia2.Text = dongia_str;
                XRthanhtien2.Text = thanhtien_str;
            }
            else if (index == 3)
            {
                XRstt3.Text = stt;
                XRtenhanghoa3.Text = tenhanghoa;
                XRdonvitinh3.Text = donvitinh;
                XRsoluong3.Text = soluong_str;
                XRdongia3.Text = dongia_str;
                XRthanhtien3.Text = thanhtien_str;
            }
            else if (index == 4)
            {
                XRstt4.Text = stt;
                XRtenhanghoa4.Text = tenhanghoa;
                XRdonvitinh4.Text = donvitinh;
                XRsoluong4.Text = soluong_str;
                XRdongia4.Text = dongia_str;
                XRthanhtien4.Text = thanhtien_str;
            }
            index++;
        }
        ////#,##0
        //int xr_congtienhang = 0;
        //int xr_GTGT = 0;
        //int xr_thanhtien = 0;
        //try {
        //    xr_congtienhang = int.Parse(XR_congtienhang.Text);
        //}
        //catch { }
        //try {
        //    xr_GTGT = int.Parse(XR_GTGT.Text);
        //}
        //catch { }
        //try {
        //    xr_thanhtien = int.Parse(XR_thanhtien.Text);
        //}
        //catch { }
        //XR_congtienhang.Text = string.Format("{0:#,##0}", xr_congtienhang);
        //XR_GTGT.Text = string.Format("{0:#,##0}", xr_GTGT);
        //XR_thanhtien.Text = string.Format("{0:#,##0}", xr_thanhtien);
    }

    private void XRstt2_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        
    }

    private void txtF_STT_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        
    }

    private void XR_GTGT_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        try {
            XR_GTGT.Text = Convert.ToDouble(XR_GTGT.Text).ToString("#,0");
        }
        catch { }
        
        //test readposition finish
        //setpostionfortheelementHoaDon();
    }
    public void setpostionfortheelementHoaDon()
    {
        cls_tb_position_element_HOADON.ReadPostion(F_MACN_prop);
        //XR_F_STT
        XR_F_STT.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_F_STT.x, cls_tb_position_element_HOADON.XR_F_STT.y);
        XR_F_STT.WidthF = cls_tb_position_element_HOADON.XR_F_STT.width;
        XR_F_STT.Visible = cls_tb_position_element_HOADON.XR_F_STT.visible == 1 ? true : false;
        //XR_F_KyHieuHD
        XR_F_KyHieuHD.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_F_KyHieuHD.x, cls_tb_position_element_HOADON.XR_F_KyHieuHD.y);
        XR_F_KyHieuHD.WidthF = cls_tb_position_element_HOADON.XR_F_KyHieuHD.width;
        XR_F_KyHieuHD.Visible = cls_tb_position_element_HOADON.XR_F_KyHieuHD.visible == 1 ? true : false;
        //XR_F_SoHD
        XR_F_SoHD.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_F_SoHD.x, cls_tb_position_element_HOADON.XR_F_SoHD.y);
        XR_F_SoHD.WidthF = cls_tb_position_element_HOADON.XR_F_SoHD.width;
        XR_F_SoHD.Visible = cls_tb_position_element_HOADON.XR_F_SoHD.visible == 1 ? true : false;
        //XR_ngay
        XR_ngay.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_ngay.x, cls_tb_position_element_HOADON.XR_ngay.y);
        XR_ngay.WidthF = cls_tb_position_element_HOADON.XR_ngay.width;
        XR_ngay.Visible = cls_tb_position_element_HOADON.XR_ngay.visible == 1 ? true : false;
        //XR_thang
        XR_thang.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_thang.x, cls_tb_position_element_HOADON.XR_thang.y);
        XR_thang.WidthF = cls_tb_position_element_HOADON.XR_thang.width;
        XR_thang.Visible = cls_tb_position_element_HOADON.XR_thang.visible == 1 ? true : false;
        //XR_nam
        XR_nam.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_nam.x, cls_tb_position_element_HOADON.XR_nam.y);
        XR_nam.WidthF = cls_tb_position_element_HOADON.XR_nam.width;
        XR_nam.Visible = cls_tb_position_element_HOADON.XR_nam.visible == 1 ? true : false;
        //XR_nguoimuahang_hoten
        XR_nguoimuahang_hoten.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_nguoimuahang_hoten.x, cls_tb_position_element_HOADON.XR_nguoimuahang_hoten.y);
        XR_nguoimuahang_hoten.WidthF = cls_tb_position_element_HOADON.XR_nguoimuahang_hoten.width;
        XR_nguoimuahang_hoten.Visible = cls_tb_position_element_HOADON.XR_nguoimuahang_hoten.visible == 1 ? true : false;
        //XR_donvi
        XR_donvi.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_donvi.x, cls_tb_position_element_HOADON.XR_donvi.y);
        XR_donvi.WidthF = cls_tb_position_element_HOADON.XR_donvi.width;
        XR_donvi.Visible = cls_tb_position_element_HOADON.XR_donvi.visible == 1 ? true : false;
        //XR_diachi
        XR_diachi.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_diachi.x, cls_tb_position_element_HOADON.XR_diachi.y);
        XR_diachi.WidthF = cls_tb_position_element_HOADON.XR_diachi.width;
        XR_diachi.Visible = cls_tb_position_element_HOADON.XR_diachi.visible == 1 ? true : false;
        //XR_taikhoan
        XR_taikhoan.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_taikhoan.x, cls_tb_position_element_HOADON.XR_taikhoan.y);
        XR_taikhoan.WidthF = cls_tb_position_element_HOADON.XR_taikhoan.width;
        XR_taikhoan.Visible = cls_tb_position_element_HOADON.XR_taikhoan.visible == 1 ? true : false;
        //XR_HTTT
        XR_HTTT.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_HTTT.x, cls_tb_position_element_HOADON.XR_HTTT.y);
        XR_HTTT.WidthF = cls_tb_position_element_HOADON.XR_HTTT.width;
        XR_HTTT.Visible = cls_tb_position_element_HOADON.XR_HTTT.visible == 1 ? true : false;
        //XR_MST
        XR_MST.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST.x, cls_tb_position_element_HOADON.XR_MST.y);
        XR_MST.WidthF = cls_tb_position_element_HOADON.XR_MST.width;
        XR_MST.Visible = cls_tb_position_element_HOADON.XR_MST.visible == 1 ? true : false;

        XR_MST1.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST1.x, cls_tb_position_element_HOADON.XR_MST1.y);
        XR_MST1.WidthF = cls_tb_position_element_HOADON.XR_MST1.width;
        XR_MST1.Visible = cls_tb_position_element_HOADON.XR_MST1.visible == 1 ? true : false;

        XR_MST2.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST2.x, cls_tb_position_element_HOADON.XR_MST2.y);
        XR_MST2.WidthF = cls_tb_position_element_HOADON.XR_MST2.width;
        XR_MST2.Visible = cls_tb_position_element_HOADON.XR_MST2.visible == 1 ? true : false;

        XR_MST3.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST3.x, cls_tb_position_element_HOADON.XR_MST3.y);
        XR_MST3.WidthF = cls_tb_position_element_HOADON.XR_MST3.width;
        XR_MST3.Visible = cls_tb_position_element_HOADON.XR_MST3.visible == 1 ? true : false;

        XR_MST4.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST4.x, cls_tb_position_element_HOADON.XR_MST4.y);
        XR_MST4.WidthF = cls_tb_position_element_HOADON.XR_MST4.width;
        XR_MST4.Visible = cls_tb_position_element_HOADON.XR_MST4.visible == 1 ? true : false;

        XR_MST5.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST5.x, cls_tb_position_element_HOADON.XR_MST5.y);
        XR_MST5.WidthF = cls_tb_position_element_HOADON.XR_MST5.width;
        XR_MST5.Visible = cls_tb_position_element_HOADON.XR_MST5.visible == 1 ? true : false;

        XR_MST6.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST6.x, cls_tb_position_element_HOADON.XR_MST6.y);
        XR_MST6.WidthF = cls_tb_position_element_HOADON.XR_MST6.width;
        XR_MST6.Visible = cls_tb_position_element_HOADON.XR_MST6.visible == 1 ? true : false;

        XR_MST7.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST7.x, cls_tb_position_element_HOADON.XR_MST7.y);
        XR_MST7.WidthF = cls_tb_position_element_HOADON.XR_MST7.width;
        XR_MST7.Visible = cls_tb_position_element_HOADON.XR_MST7.visible == 1 ? true : false;

        XR_MST8.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST8.x, cls_tb_position_element_HOADON.XR_MST8.y);
        XR_MST8.WidthF = cls_tb_position_element_HOADON.XR_MST8.width;
        XR_MST8.Visible = cls_tb_position_element_HOADON.XR_MST8.visible == 1 ? true : false;

        XR_MST9.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST9.x, cls_tb_position_element_HOADON.XR_MST9.y);
        XR_MST9.WidthF = cls_tb_position_element_HOADON.XR_MST9.width;
        XR_MST9.Visible = cls_tb_position_element_HOADON.XR_MST9.visible == 1 ? true : false;

        XR_MST10.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST10.x, cls_tb_position_element_HOADON.XR_MST10.y);
        XR_MST10.WidthF = cls_tb_position_element_HOADON.XR_MST10.width;
        XR_MST10.Visible = cls_tb_position_element_HOADON.XR_MST10.visible == 1 ? true : false;

        XR_MST11.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST11.x, cls_tb_position_element_HOADON.XR_MST11.y);
        XR_MST11.WidthF = cls_tb_position_element_HOADON.XR_MST11.width;
        XR_MST11.Visible = cls_tb_position_element_HOADON.XR_MST11.visible == 1 ? true : false;

        XR_MST12.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST12.x, cls_tb_position_element_HOADON.XR_MST12.y);
        XR_MST12.WidthF = cls_tb_position_element_HOADON.XR_MST12.width;
        XR_MST12.Visible = cls_tb_position_element_HOADON.XR_MST12.visible == 1 ? true : false;

        XR_MST13.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST13.x, cls_tb_position_element_HOADON.XR_MST13.y);
        XR_MST13.WidthF = cls_tb_position_element_HOADON.XR_MST13.width;
        XR_MST13.Visible = cls_tb_position_element_HOADON.XR_MST13.visible == 1 ? true : false;

        XR_MST14.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_MST14.x, cls_tb_position_element_HOADON.XR_MST14.y);
        XR_MST14.WidthF = cls_tb_position_element_HOADON.XR_MST14.width;
        XR_MST14.Visible = cls_tb_position_element_HOADON.XR_MST14.visible == 1 ? true : false;
        //XRstt
        XRstt1.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRstt.x, cls_tb_position_element_HOADON.Line_1.y);
        XRstt1.WidthF = cls_tb_position_element_HOADON.XRstt.width;
        XRstt1.Visible = cls_tb_position_element_HOADON.XRstt.visible == 1 ? true : false;

        XRstt2.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRstt.x, cls_tb_position_element_HOADON.Line_2.y);
        XRstt2.WidthF = cls_tb_position_element_HOADON.XRstt.width;
        XRstt2.Visible = cls_tb_position_element_HOADON.XRstt.visible == 1 ? true : false;

        XRstt3.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRstt.x, cls_tb_position_element_HOADON.Line_3.y);
        XRstt3.WidthF = cls_tb_position_element_HOADON.XRstt.width;
        XRstt3.Visible = cls_tb_position_element_HOADON.XRstt.visible == 1 ? true : false;

        XRstt4.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRstt.x, cls_tb_position_element_HOADON.Line_4.y);
        XRstt4.WidthF = cls_tb_position_element_HOADON.XRstt.width;
        XRstt4.Visible = cls_tb_position_element_HOADON.XRstt.visible == 1 ? true : false;
        //XRtenhanghoa
        XRtenhanghoa1.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRtenhanghoa.x, cls_tb_position_element_HOADON.Line_1.y);
        XRtenhanghoa1.WidthF = cls_tb_position_element_HOADON.XRtenhanghoa.width;
        XRtenhanghoa1.Visible = cls_tb_position_element_HOADON.XRtenhanghoa.visible == 1 ? true : false;

        XRtenhanghoa2.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRtenhanghoa.x, cls_tb_position_element_HOADON.Line_2.y);
        XRtenhanghoa2.WidthF = cls_tb_position_element_HOADON.XRtenhanghoa.width;
        XRtenhanghoa2.Visible = cls_tb_position_element_HOADON.XRtenhanghoa.visible == 1 ? true : false;

        XRtenhanghoa3.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRtenhanghoa.x, cls_tb_position_element_HOADON.Line_3.y);
        XRtenhanghoa3.WidthF = cls_tb_position_element_HOADON.XRtenhanghoa.width;
        XRtenhanghoa3.Visible = cls_tb_position_element_HOADON.XRtenhanghoa.visible == 1 ? true : false;

        XRtenhanghoa4.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRtenhanghoa.x, cls_tb_position_element_HOADON.Line_4.y);
        XRtenhanghoa4.WidthF = cls_tb_position_element_HOADON.XRtenhanghoa.width;
        XRtenhanghoa4.Visible = cls_tb_position_element_HOADON.XRtenhanghoa.visible == 1 ? true : false;
        //XRdonvitinh
        XRdonvitinh1.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdonvitinh.x, cls_tb_position_element_HOADON.Line_1.y);
        XRdonvitinh1.WidthF = cls_tb_position_element_HOADON.XRdonvitinh.width;
        XRdonvitinh1.Visible = cls_tb_position_element_HOADON.XRdonvitinh.visible == 1 ? true : false;

        XRdonvitinh2.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdonvitinh.x, cls_tb_position_element_HOADON.Line_2.y);
        XRdonvitinh2.WidthF = cls_tb_position_element_HOADON.XRdonvitinh.width;
        XRdonvitinh2.Visible = cls_tb_position_element_HOADON.XRdonvitinh.visible == 1 ? true : false;

        XRdonvitinh3.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdonvitinh.x, cls_tb_position_element_HOADON.Line_3.y);
        XRdonvitinh3.WidthF = cls_tb_position_element_HOADON.XRdonvitinh.width;
        XRdonvitinh3.Visible = cls_tb_position_element_HOADON.XRdonvitinh.visible == 1 ? true : false;

        XRdonvitinh4.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdonvitinh.x, cls_tb_position_element_HOADON.Line_4.y);
        XRdonvitinh4.WidthF = cls_tb_position_element_HOADON.XRdonvitinh.width;
        XRdonvitinh4.Visible = cls_tb_position_element_HOADON.XRdonvitinh.visible == 1 ? true : false;
        //XRdongia
        XRdongia1.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdongia.x, cls_tb_position_element_HOADON.Line_1.y);
        XRdongia1.WidthF = cls_tb_position_element_HOADON.XRdongia.width;
        XRdongia1.Visible = cls_tb_position_element_HOADON.XRdongia.visible == 1 ? true : false;

        XRdongia2.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdongia.x, cls_tb_position_element_HOADON.Line_2.y);
        XRdongia2.WidthF = cls_tb_position_element_HOADON.XRdongia.width;
        XRdongia2.Visible = cls_tb_position_element_HOADON.XRdongia.visible == 1 ? true : false;

        XRdongia3.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdongia.x, cls_tb_position_element_HOADON.Line_3.y);
        XRdongia3.WidthF = cls_tb_position_element_HOADON.XRdongia.width;
        XRdongia3.Visible = cls_tb_position_element_HOADON.XRdongia.visible == 1 ? true : false;

        XRdongia4.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRdongia.x, cls_tb_position_element_HOADON.Line_4.y);
        XRdongia4.WidthF = cls_tb_position_element_HOADON.XRdongia.width;
        XRdongia4.Visible = cls_tb_position_element_HOADON.XRdongia.visible == 1 ? true : false;
        //XRsoluong
        XRsoluong1.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRsoluong.x, cls_tb_position_element_HOADON.Line_1.y);
        XRsoluong1.WidthF = cls_tb_position_element_HOADON.XRsoluong.width;
        XRsoluong1.Visible = cls_tb_position_element_HOADON.XRsoluong.visible == 1 ? true : false;

        XRsoluong2.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRsoluong.x, cls_tb_position_element_HOADON.Line_2.y);
        XRsoluong2.WidthF = cls_tb_position_element_HOADON.XRsoluong.width;
        XRsoluong2.Visible = cls_tb_position_element_HOADON.XRsoluong.visible == 1 ? true : false;

        XRsoluong3.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRsoluong.x, cls_tb_position_element_HOADON.Line_3.y);
        XRsoluong3.WidthF = cls_tb_position_element_HOADON.XRsoluong.width;
        XRsoluong3.Visible = cls_tb_position_element_HOADON.XRsoluong.visible == 1 ? true : false;

        XRsoluong4.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRsoluong.x, cls_tb_position_element_HOADON.Line_4.y);
        XRsoluong4.WidthF = cls_tb_position_element_HOADON.XRsoluong.width;
        XRsoluong4.Visible = cls_tb_position_element_HOADON.XRsoluong.visible == 1 ? true : false;
        //XRthanhtien
        XRthanhtien1.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRthanhtien.x, cls_tb_position_element_HOADON.Line_1.y);
        XRthanhtien1.WidthF = cls_tb_position_element_HOADON.XRthanhtien.width;
        XRthanhtien1.Visible = cls_tb_position_element_HOADON.XRthanhtien.visible == 1 ? true : false;

        XRthanhtien2.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRthanhtien.x, cls_tb_position_element_HOADON.Line_2.y);
        XRthanhtien2.WidthF = cls_tb_position_element_HOADON.XRthanhtien.width;
        XRthanhtien2.Visible = cls_tb_position_element_HOADON.XRthanhtien.visible == 1 ? true : false;

        XRthanhtien3.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRthanhtien.x, cls_tb_position_element_HOADON.Line_3.y);
        XRthanhtien3.WidthF = cls_tb_position_element_HOADON.XRthanhtien.width;
        XRthanhtien3.Visible = cls_tb_position_element_HOADON.XRthanhtien.visible == 1 ? true : false;

        XRthanhtien4.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XRthanhtien.x, cls_tb_position_element_HOADON.Line_4.y);
        XRthanhtien4.WidthF = cls_tb_position_element_HOADON.XRthanhtien.width;
        XRthanhtien4.Visible = cls_tb_position_element_HOADON.XRthanhtien.visible == 1 ? true : false;
        //XR_congtienhang
        XR_congtienhang.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_congtienhang.x, cls_tb_position_element_HOADON.XR_congtienhang.y);
        XR_congtienhang.WidthF = cls_tb_position_element_HOADON.XR_congtienhang.width;
        XR_congtienhang.Visible = cls_tb_position_element_HOADON.XR_congtienhang.visible == 1 ? true : false;
        //XR_thue
        XR_thue.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_thue.x, cls_tb_position_element_HOADON.XR_thue.y);
        XR_thue.WidthF = cls_tb_position_element_HOADON.XR_thue.width;
        XR_thue.Visible = cls_tb_position_element_HOADON.XR_thue.visible == 1 ? true : false;
        //XR_GTGT
        XR_GTGT.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_GTGT.x, cls_tb_position_element_HOADON.XR_GTGT.y);
        XR_GTGT.WidthF = cls_tb_position_element_HOADON.XR_GTGT.width;
        XR_GTGT.Visible = cls_tb_position_element_HOADON.XR_GTGT.visible == 1 ? true : false;
        //XR_thanhtien
        XR_thanhtien.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_thanhtien.x, cls_tb_position_element_HOADON.XR_thanhtien.y);
        XR_thanhtien.WidthF = cls_tb_position_element_HOADON.XR_thanhtien.width;
        XR_thanhtien.Visible = cls_tb_position_element_HOADON.XR_thanhtien.visible == 1 ? true : false;
        //XR_tienbangchu
        XR_tienbangchu.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_tienbangchu.x, cls_tb_position_element_HOADON.XR_tienbangchu.y);
        XR_tienbangchu.WidthF = cls_tb_position_element_HOADON.XR_tienbangchu.width;
        XR_tienbangchu.Visible = cls_tb_position_element_HOADON.XR_tienbangchu.visible == 1 ? true : false;
        //XR_nguoimuahang_kyten
        XR_nguoimuahang_kyten.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_nguoimuahang_kyten.x, cls_tb_position_element_HOADON.XR_nguoimuahang_kyten.y);
        XR_nguoimuahang_kyten.WidthF = cls_tb_position_element_HOADON.XR_nguoimuahang_kyten.width;
        XR_nguoimuahang_kyten.Visible = cls_tb_position_element_HOADON.XR_nguoimuahang_kyten.visible == 1 ? true : false;
        //XR_nguoibanhang
        XR_nguoibanhang.LocationF = new System.Drawing.PointF(cls_tb_position_element_HOADON.XR_nguoibanhang.x, cls_tb_position_element_HOADON.XR_nguoibanhang.y);
        XR_nguoibanhang.WidthF = cls_tb_position_element_HOADON.XR_nguoibanhang.width;
        XR_nguoibanhang.Visible = cls_tb_position_element_HOADON.XR_nguoibanhang.visible == 1 ? true : false;

    }
}
